package com.ahnu.tongue.service;

import com.ahnu.tongue.dto.TongueAnalysisRequest;
import com.ahnu.tongue.dto.TongueAnalysisResponse;
import com.ahnu.tongue.entity.TongueRecord;

import java.util.List;

public interface TongueService {
    /**
     * 上传并分析舌象图片
     */
    TongueAnalysisResponse analyzeImage(TongueAnalysisRequest request);

    /**
     * 获取诊断报告详情
     */
    TongueAnalysisResponse getAnalysisResult(Long recordId, Long userId);

    /**
     * 获取用户的诊断历史记录
     */
    List<TongueAnalysisResponse> getHistoryRecords(Long userId, int page, int size);

    /**
     * 删除诊断记录
     */
    void deleteRecord(Long recordId, Long userId);
} 